from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^login$',                     'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'),
    url(r'^post_spy_report$',           'ortools.web.views.post_spy_report',        name='post_spy_report'),
    url(r'^reports/show/(\d+)$',        'ortools.web.views.show_report',            name='show_report'),
    url(r'^(?:database|)$',             'ortools.web.views.database',               name='database'),
    url(r'^player/show/(\d+)$',         'ortools.web.views.show_player',            name='show_player'),
    url(r'^planet/show/(\d+)$',         'ortools.web.views.show_planet',            name='show_planet'),
    url(r'^map$',                       'ortools.web.views.map',                    name='map'),
    url(r'^search$',                    'ortools.web.views.search',                 name='search'),
    url(r'^advanced_search$',           'ortools.web.views.advanced_search',        name='advanced_search'),
    url(r'^advanced_search_result$',    'ortools.web.views.advanced_search_result', name='advanced_search_result'),
    # Examples:
    # url(r'^$', 'ortools.views.home', name='home'),
    # url(r'^ortools/', include('ortools.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
